<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>AKB Mining</title>
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/index.css" />
    <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon"/>
    <script src="js/jquery.min.js"></script>
    <style type="text/css">
        img{max-width: 100%; height: auto;}
        .wechat-tip{display: none; position: fixed; left:0; top:0; bottom:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80);  height: 100%; width: 100%; z-index: 100;}
        .wechat-tip p{text-align: center; margin-top: 10%; padding:0 5%;}
    </style>
</head>
<body>
<div id="download">
    <div class="content">
        <div>
            <img class="login_img" src="img/h5_moviefansLOGO@2x.png"/>
            <div class="txtColor-W login_text">AKB Mining</div>
        </div>
        <div class="but_div">
            <div>
                <a href="itms-services://?action=download-manifest&url=https://torchex.global/akb_miner/manifest.plist" class="back_white but_style">
                <span class="ios_text ios_img">ios</span>
                </a>
            </div>
            <div>
                <a href="http://akbmining.club/appDatass/AkbMiner.apk" class="back_white but_style">
                    <span class="ios_text android_img">android</span>
                </a>
            </div>
        </div>
        <!--<div class="versionInfo" style="color: #acacac; padding-top: 25px; font-size: 12px; line-height: 24px;">
            <p style="margin-bottom: 5px;">latest version:<span>{{version}}</span></p>
            <ul>
                <li v-for="item in dataList">{{item}}</li>
            </ul>
        </div>-->
    </div>
</div>

<div class="wechat-tip">
    <p><img id="img" src="img/language_zh.png"/></p>
</div>
<!--<script src="js/vue.min.js"></script>
<script src="js/vue-resource.js"></script>-->
<script type="text/javascript">
    /* var vm = new Vue({
         el:'.versionInfo',
         data:{
             version:null,
             dataList:[]
         }
     });
     Vue.http.get("http://cbt.network/cbt/cbt/checkIOSUpdate").then(function (res) {
         vm.version = JSON.parse(res.bodyText).data.version_code;
         vm.dataList = JSON.parse(res.bodyText).data.update_msg;
     },function (error){
         console.log(error.msg)
     });*/

    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if (r != null) return unescape(r[2]);
        return null;
    }
    var language = getUrlParam('language');
    // console.log(language);
    if(language){
        $("#img").attr("src","img/language_"+language+".png");
    }else{
        $("#img").attr("src","img/language_zh.png");
    }


    $(window).on("load",function(){
        var winHeight = $(window).height();
        function is_wechat() {
            var ua = navigator.userAgent.toLowerCase();
            if (ua.match(/MicroMessenger/i) == "micromessenger") {
                return true;
            } else {
                return false;
            }
        }
        var isWechat = is_wechat();
        if(isWechat){
            $(".wechat-tip").css("height",winHeight);
            $(".wechat-tip").show();
        }
    })
</script>
</body>

</html>
